
package com.zsrt.day20170504.ch07;

public class Test01 {

	public static void main(String[] args) {
		Producer producer= new Producer(16);
		
		Customer customer = new Customer(producer);
		
		Thread thread1 = new Thread(customer);
		thread1.setName("顾客A");
		
		Thread thread2 = new Thread(customer);
		thread2.setName("顾客B");
		thread1.start();
		thread2.start();
	}
}
